From: Florian Müllner Date: Sat, 21 Feb 2015 14:05:16 +0000 (+0100) Subject: build: Keep CSS updated when sass is installed X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~1672 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c749facedb227c1a3615e1f667a5ba3931b57387;p=gnome-shell.git build: Keep CSS updated when sass is installed --- diff --git a/configure.ac b/configure.ac index bac63af71..e729666b4 100644 --- a/configure.ac +++ b/configure.ac @@ -242,6 +242,8 @@ if test -z "$GDBUS_CODEGEN"; then AC_MSG_ERROR([gdbus-codegen not found]) fi +AC_PATH_PROG([SASS],[sass],[]) + AC_CONFIG_FILES([ Makefile data/Makefile diff --git a/data/Makefile.am b/data/Makefile.am index c46e35030..56d629a09 100644 --- a/data/Makefile.am +++ b/data/Makefile.am @@ -57,6 +57,12 @@ dist_theme_files = \ theme/gnome-shell-sass/gnome-shell-sass.doap \ $(NULL) +%.css: %.scss $(theme_sources) + @if test -n "$(SASS)"; then \ + if $(AM_V_P); then PS4= set -x; else echo " GEN $@"; fi; \ + $(SASS) --sourcemap=none -f -q --update $<; \ + fi + resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir)/theme --generate-dependencies $(srcdir)/gnome-shell-theme.gresource.xml) gnome-shell-theme.gresource: gnome-shell-theme.gresource.xml $(resource_files) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir)/theme $<